lcPaint_MpgonAddBarcode Home

Adds a set of barcode polygons into multipolygon object.

 BOOL lcPaint_MpgonAddBarcode (
   HANDLE hMpgon,
   int BarType,
   double X,
   double Y,
   double Width,
   double Height,
   LPCWSTR szText
 );

Parameters
hMpgon
  Handle to multipolygon object.
BarType
  Barcode type. Can be one of the following values:

Value Type

Linear barcodes
LC_BARTYPE_CODE39 Code 39
LC_BARTYPE_CODE93 Code 93
LC_BARTYPE_CODE128 Code 128
LC_BARTYPE_EAN13 EAN-13
LC_BARTYPE_EAN8 EAN-8
LC_BARTYPE_ITF Interleaved 2 of 5 (ITF)

Matrix (2D) barcodes
LC_BARTYPE_QR QR-code
LC_BARTYPE_MQR Micro QR-code
LC_BARTYPE_DMATRIX Data Matrix
X Y
  Coordinates of insertion point.
The placement depends on value of global property LC_PROP_G_BARC_CENTER :  TRUE - barcode center, FALSE - left bottom corner.
Width
  Barcode width.
Height
  Height of linear barcode. Ignored for 2D barcodes (used Width value).
szText
  Text string encoded in barcode.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  Additional barcode parameters are got from global properties:

Property Type Access Meaning
LC_PROP_G_BARC_CENTER bool RW if TRUE - basepoint is a center, FALSE - left bottom corner
LC_PROP_G_BARC_ANGLE float RW Rotation angle around base point
LC_PROP_G_BARC_BELOW float RW Height below baseline (for EAN8, EAN13)
LC_PROP_G_BARC_QZONE float RW Size of quiet space
LC_PROP_G_BARC_CHSUM bool RW Add checksum digit at the end
LC_PROP_G_BARC_ECL int RW Error correction level (LC_BARC_QRECL_L, LC_BARC_QRECL_M, etc.)
LC_PROP_G_BARC_INVERT bool RW Negative filling
LC_PROP_G_BARC_WRATIO float RW Ratio <wide bar> / <narrow bar> (2.0 - 3.0)
LC_PROP_G_BARC_LINEW float RW Compensation of line width

See Also

  lcPaint_MpgonClearlcPaint_MpgonAddPgonlcPaint_DrawTextBC